<?php
include('../mysqli_connect.php');
$groupNo=$_GET['groupNo'];

$sql = "select team_name from team where group_no='{$groupNo}'";
$res = mysqli_query($dbc, $sql);
if (!$res) {
  $response = array('status' => false, 'message' => mysqli_error($dbc));
  echo json_encode($response);
}
$Array = array();
$i = 0;
while ($row = mysqli_fetch_row($res)) {
  $Array[$i] = $row[0];
  $i = $i + 1;
}
$response = array('status' => true, 'message' => '获取小组队伍成功', 'data' => $Array, 'groupNo' => $groupNo);
echo json_encode($response);
